$(function(){
	var infoId=queryString('detailId');
	/*alert("==="+infoId);*/
	requestDetail(infoId)
	
});
//正则取链接传来的数据
function queryString(key)
{
    var regex_str = "^.+\\?.*?\\b"+ key +"=(.*?)(?:(?=&)|$|#)";
    var regex = new RegExp(regex_str,"i");
    var url = window.location.toString();
    if(regex.test(url)) return RegExp.$1;
    return undefined;
}
/*根据点评记录id查询当前记录详情*/
function requestDetail(infoId){
	
	var object={"id":6,"Information_id":"69541","user_id":"588","content":"信息处理及时","create_time":"2016-5-4","Information_quality_id":"优","task_completion_id":"良"};
	//根据用户id，user_id查询用户姓名，显示用户姓名不显示user_id
	var comUser="张三";
	//根据点评记录id查询浏览人id
	var borwUser=[{"name":"张家琴","borwTime":"2016-5-7"},{"name":"徐琴","borwTime":"2016-5-8"},{"name":"殷芹","borwTime":"2016-5-9"}];
	var borwUsers="";
	for(var i=0;i<borwUser.length;i++){
		borwUsers+=borwUser[i].name+":"+borwUser[i].borwTime+"\n";
	}
	borwUsers=borwUsers+borwUsers+borwUsers;
	
	$(".borwUser").val(borwUsers);
	
	$("input[name=commUser]").val(comUser);
	$("input[name=commitId]").val(object.Information_id);
	$("input[name=creatTime]").val(object.create_time);
	$("input[name=finisiQu]").val(object.Information_quality_id);
	$("input[name=mesColQu]").val(object.task_completion_id);
	$(".content").val(object.content);
	/*
	 *?????
	 * 
	 * */
	
}